import request from '@/utils/request'
// 获取分类列表

export function getAgentsList(params) {
  return request({
    url: '/agents',
    method: 'get',
    params
  })
}
export function getSearchFn(params) {
  return request({
    url: '/agents/count',
    method: 'get',
    params
  })
}
export function addAgentsList(data) {
  return request({
    url: '/agents',
    method: 'post',
    data

  })
}
export function addAgentsData(data) {
  return request({
    url: `/agents/${data.id}`,
    method: 'put',
    data
  })
}
export function delAgentsLis(id) {
  return request({
    url: `/agents/${id}`,
    method: 'delete'
  })
}
